<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>圆角与背景 | Qin-BookNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../note/css/hezi.html" />
    
    
    <link rel="prev" href="../../note/css/border.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.3.2"
        data-chapter-title="圆角与背景"
        data-filepath="note/css/tu.md"
        data-basepath="../.."
        data-revision="Wed Sep 20 2017 11:13:21 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="note/html/1.html">
            
                
                    <a href="../../note/html/1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="note/html/jianjie.html">
            
                
                    <a href="../../note/html/jianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML的简介和标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="note/html/emmet.html">
            
                
                    <a href="../../note/html/emmet.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        emmet
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="note/html/text.html">
            
                
                    <a href="../../note/html/text.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        实体字符与文本
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="note/html/yuyi.html">
            
                
                    <a href="../../note/html/yuyi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="note/html/biao.html">
            
                
                    <a href="../../note/html/biao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        表格
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="note/html/table.html">
            
                
                    <a href="../../note/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.1.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="note/html/form.html">
            
                
                    <a href="../../note/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.2.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="note/html/input.html">
            
                
                    <a href="../../note/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.3.</b>
                        
                        input属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="note/html/lianlie.html">
            
                
                    <a href="../../note/html/lianlie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        链接和列表
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="note/html/libiao.html">
            
                
                    <a href="../../note/html/libiao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.1.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="note/html/lianjie.html">
            
                
                    <a href="../../note/html/lianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.2.</b>
                        
                        超链接
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="note/html/media.html">
            
                
                    <a href="../../note/html/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        多媒体
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="note/html/audio.html">
            
                
                    <a href="../../note/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.1.</b>
                        
                        音频和视频
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="note/html/head.html">
            
                
                    <a href="../../note/html/head.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        head
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="note/html/meta.html">
            
                
                    <a href="../../note/html/meta.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.1.</b>
                        
                        meta标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="note/html/link.html">
            
                
                    <a href="../../note/html/link.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.2.</b>
                        
                        link标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="note/css/css.html">
            
                
                    <a href="../../note/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="note/css/xuanze.html">
            
                
                    <a href="../../note/css/xuanze.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="note/css/yuansu.html">
            
                
                    <a href="../../note/css/yuansu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="note/css/csxuanze.html">
            
                
                    <a href="../../note/css/csxuanze.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="note/css/ziyuan.html">
            
                
                    <a href="../../note/css/ziyuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        子元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="note/css/shuxing.html">
            
                
                    <a href="../../note/css/shuxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="note/css/weilei.html">
            
                
                    <a href="../../note/css/weilei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="note/css/duixiang.html">
            
                
                    <a href="../../note/css/duixiang.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="note/css/zi.html">
            
                
                    <a href="../../note/css/zi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        字体
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="note/css/font.html">
            
                
                    <a href="../../note/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        font
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="note/css/icon.html">
            
                
                    <a href="../../note/css/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="note/css/wenben.html">
            
                
                    <a href="../../note/css/wenben.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文本装饰
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="note/css/biankuan.html">
            
                
                    <a href="../../note/css/biankuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        border
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="note/css/border.html">
            
                
                    <a href="../../note/css/border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        边框
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.3.2" data-path="note/css/tu.html">
            
                
                    <a href="../../note/css/tu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        圆角与背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="note/css/hezi.html">
            
                
                    <a href="../../note/css/hezi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="note/css/float.html">
            
                
                    <a href="../../note/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="note/css/position.html">
            
                
                    <a href="../../note/css/position.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="note/css/scss.html">
            
                
                    <a href="../../note/css/scss.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        SCSS
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="note/css/donghua.html">
            
                
                    <a href="../../note/css/donghua.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="note/css/viewport.html">
            
                
                    <a href="../../note/css/viewport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        viewport
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="note/css/buju.html">
            
                
                    <a href="../../note/css/buju.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="note/css/rem.html">
            
                
                    <a href="../../note/css/rem.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        rem的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="note/css/shan.html">
            
                
                    <a href="../../note/css/shan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        响应式布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="note/css/flex.html">
            
                
                    <a href="../../note/css/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        flex
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="note/js/javascript.html">
            
                
                    <a href="../../note/js/javascript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        javascript解析器脚本
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="note/js/js.html">
            
                
                    <a href="../../note/js/js.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        什么是js
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="note/js/use.html">
            
                
                    <a href="../../note/js/use.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        js的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="note/js/computer.html">
            
                
                    <a href="../../note/js/computer.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="note/js/xunhuan.html">
            
                
                    <a href="../../note/js/xunhuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        判断与循环
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="note/js/function.html">
            
                
                    <a href="../../note/js/function.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        function函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="note/js/dom.html">
            
                
                    <a href="../../note/js/dom.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.6.</b>
                        
                        DOM
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="note/js/array.html">
            
                
                    <a href="../../note/js/array.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.7.</b>
                        
                        Array
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="note/js/math.html">
            
                
                    <a href="../../note/js/math.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.</b>
                        
                        Math
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="note/js/Date.html">
            
                
                    <a href="../../note/js/Date.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.9.</b>
                        
                        Date
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Qin-BookNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x5706;&#x89D2;&#x4E0E;&#x80CC;&#x666F;">&#x5706;&#x89D2;&#x4E0E;&#x80CC;&#x666F;</h1>
<h2 id="borderradius&#x5706;&#x89D2;&#x8FB9;&#x6846;">border-radius&#x5706;&#x89D2;&#x8FB9;&#x6846;</h2>
<p>&#x5411;&#x5143;&#x7D20;&#x6DFB;&#x52A0;&#x5706;&#x89D2;&#x8FB9;&#x6846;<br>&#x8BED;&#x6CD5;
<code>border-radius:?px/%</code><br>&#x7F29;&#x5199;&#xFF1A;<code>border-radius: 50% 50% 50% 8px;</code>(&#x5DE6;&#x4E0A; &#x53F3;&#x4E0A; &#x53F3;&#x4E0B; &#x5DE6;&#x4E0B;&#xFF0C;&#x987A;&#x65F6;&#x9488;)</p>
<blockquote>
<p>&#x8BBE;&#x7F6E;border-radius&#x4E3A;100%&#x65F6;&#xFF0C;&#x8FB9;&#x6846;&#x53D8;&#x6210;&#x4E00;&#x4E2A;&#x5706;</p>
</blockquote>
<p>&#x5236;&#x4F5C;&#x804A;&#x5929;&#x5C0F;&#x6C14;&#x6CE1;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;dialog boo&quot;</span>&gt;</span>
            bgg
<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
</code></pre>
<pre><code class="lang-css"><span class="hljs-class">.dialog</span><span class="hljs-rules">{
            <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">padding</span>:<span class="hljs-value"> <span class="hljs-number">10px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> skyblue</span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"> <span class="hljs-number">15px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">text-align</span>:<span class="hljs-value"> center</span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">line-height</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">position</span>:<span class="hljs-value"> relative</span></span>;
}</span>
<span class="hljs-rule"><span class="hljs-attribute">.boo</span>:<span class="hljs-value">:after{
            content:<span class="hljs-string">&apos;&apos;</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">position</span>:<span class="hljs-value">absolute</span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">left</span>:<span class="hljs-value"><span class="hljs-number">100%</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">bottom</span>:<span class="hljs-value"><span class="hljs-number">0px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"><span class="hljs-number">20px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"><span class="hljs-number">80px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-width</span>:<span class="hljs-value"><span class="hljs-number">0px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-style</span>:<span class="hljs-value">solid</span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-color</span>:<span class="hljs-value">transparent</span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-top-width</span>:<span class="hljs-value"><span class="hljs-number">10px</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-top-color</span>:<span class="hljs-value">skyblue</span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"><span class="hljs-number">0</span> <span class="hljs-number">32px</span> <span class="hljs-number">0</span> <span class="hljs-number">0</span></span></span>;
            <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"><span class="hljs-hexcolor">#dddddd</span></span></span>;

}
</code></pre>
<h2 id="borderimage&#x56FE;&#x7247;&#x8FB9;&#x6846;">border-image&#x56FE;&#x7247;&#x8FB9;&#x6846;</h2>
<p>&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x7684;&#x8FB9;&#x6846;&#x4E3A;&#x56FE;&#x7247;
&#x8BED;&#x6CD5;&#xFF1A;<code>border-image: url(xx/xx.xx) ?/?</code>&#x767E;&#x5206;&#x6BD4;/&#x50CF;&#x7D20;</p>
<ul>
<li><code>border-image-source</code>  &#x662F;&#x5426;&#x7528;&#x56FE;&#x7247;&#x6216;&#x8005;&#x56FE;&#x7247;&#x6765;&#x6E90;</li>
<li><code>order-image-slice</code>  &#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x7684;&#x5206;&#x5272;&#x65B9;&#x5F0F;   &#xFF08;&#x767E;&#x5206;&#x6BD4;/&#x50CF;&#x7D20;&#xFF09;</li>
<li><code>border-image-width</code> &#x8FB9;&#x6846;&#x539A;&#x5EA6;&#xFF08;&#x767E;&#x5206;&#x6BD4;/&#x50CF;&#x7D20;&#xFF09;</li>
<li><code>border-image-outse</code> &#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x7684;&#x6269;&#x5C55;</li>
<li><code>border-image-repeat</code> &#x8FB9;&#x6846;&#x56FE;&#x50CF;&#x7684;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;</li>
</ul>
<blockquote>
<p>1.&#x5F15;&#x5165;&#x56FE;&#x7247;   </p>
<ol>
<li>&#x56FE;&#x7247;&#x7684;&#x9876;&#x70B9;&#x5927;&#x5C0F;&#xFF08;&#x5927;&#x5C0F;&#x6309;&#x539F;&#x56FE;&#x8BA1;&#x7B97;&#xFF0C;&#x8FD9;&#x91CC;&#x7684;27&#x662F;&#x539F;&#x56FE;&#x7684;81*81&#x7684;&#x4E09;&#x5206;&#x4E4B;&#x4E00;&#xFF09;<br>3.&#x586B;&#x5145;&#x65B9;&#x5F0F;&#xFF1A;strehch &#x62C9;&#x4F38; reqeat &#x91CD;&#x590D; round no-repeat&#x4E0D;&#x91CD;&#x590D;&#x52A0;&#x4E0A;&#x5C0F;&#x5E45;&#x5EA6;&#x7684;&#x62C9;&#x4F38;<br>4.&#x53D8;&#x5BBD;&#x4E00;&#x5B9A;&#x8981;&#x539F;&#x56FE;3&#x7684;&#x500D;&#x6570;</li>
</ol>
</blockquote>
<h2 id="background&#x80CC;&#x666F;">background&#x80CC;&#x666F;</h2>
<h3 id="backgroundimage&#x80CC;&#x666F;&#x56FE;">background-image&#x80CC;&#x666F;&#x56FE;</h3>
<p>&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;&#x8FD8;&#x6709;&#x80CC;&#x666F;&#x6E10;&#x53D8;
&#x8BED;&#x6CD5;&#xFF1A;<code>background-image:url()</code>/<code>background-image: linear-gradient(to top, color,color)</code></p>
<h3 id="backgroundrepeat&#x80CC;&#x666F;&#x91CD;&#x590D;&#x6A21;&#x5F0F;">background-repeat&#x80CC;&#x666F;&#x91CD;&#x590D;&#x6A21;&#x5F0F;</h3>
<p>&#x666F;&#x56FE;&#x50CF;&#x5982;&#x4F55;&#x586B;&#x5145;</p>
<ul>
<li>repeat-x&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5728;&#x6A2A;&#x5411;&#x4E0A;&#x5E73;&#x94FA;   </li>
<li>repeat-y&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5728;&#x7EB5;&#x5411;&#x4E0A;&#x5E73;&#x94FA;  </li>
<li>repeat&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5728;&#x6A2A;&#x5411;&#x548C;&#x7EB5;&#x5411;&#x5E73;&#x94FA;   </li>
<li>no-repeat&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x4E0D;&#x5E73;&#x94FA;   </li>
<li>round&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x81EA;&#x52A8;&#x7F29;&#x653E;&#x76F4;&#x5230;&#x9002;&#x5E94;&#x4E14;&#x586B;&#x5145;&#x6EE1;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x3002;   </li>
<li>space&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x4EE5;&#x76F8;&#x540C;&#x7684;&#x95F4;&#x8DDD;&#x5E73;&#x94FA;&#x4E14;&#x586B;&#x5145;&#x6EE1;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x6216;&#x67D0;&#x4E2A;&#x65B9;&#x5411;&#x3002;</li>
</ul>
<h3 id="backgroundposition&#x80CC;&#x666F;&#x4F4D;&#x7F6E;">background-position&#x80CC;&#x666F;&#x4F4D;&#x7F6E;</h3>
<p>&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x4F4D;&#x7F6E;</p>
<ul>
<li>&#xFF08;&#x9ED8;&#x8BA4;left top&#xFF09;</li>
<li>center &#x5BB9;&#x5668;&#x7684;&#x4E2D;&#x70B9;</li>
<li>&#x6570;&#x5B57;&#xFF1A;&#x76F8;&#x5BF9;&#x7236;&#x5BB9;&#x5668;&#x7684;&#x4F4D;&#x7F6E;<br>&#x7F29;&#x5199;&#xFF1A;<code>background:url(x.jpg) no-repeat right 0px bottom 0px</code><blockquote>
<p> &#x8BA1;&#x7B97;&#x7684;&#x65F6;&#x5019;&#x8981;&#x6CE8;&#x610F;&#xFF0C;&#x53C2;&#x8003;&#x70B9;&#x90FD;&#x662F;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x7684;&#x5DE6;&#x4E0A;&#x89D2;</p>
</blockquote>
</li>
</ul>
<h3 id="backgroundorigin&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x663E;&#x793A;&#x7684;&#x539F;&#x70B9;">background-origin&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x663E;&#x793A;&#x7684;&#x539F;&#x70B9;</h3>
<ul>
<li>padding-box &#x4ECE;padding&#x533A;&#x57DF;&#xFF08;&#x542B;padding&#xFF09;&#x5F00;&#x59CB;&#x663E;&#x793A;&#x80CC;&#x666F;&#x56FE;&#x50CF;</li>
<li>border-box&#xFF1A;&#x4ECE;border&#x533A;&#x57DF;&#xFF08;&#x542B;border&#xFF09;&#x5F00;&#x59CB;&#x663E;&#x793A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x3002;</li>
<li>content-box&#xFF1A;&#x4ECE;content&#x533A;&#x57DF;&#x5F00;&#x59CB;&#x663E;&#x793A;&#x80CC;&#x666F;&#x56FE;&#x50CF;</li>
</ul>
<h3 id="backgroundclip&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5411;&#x5916;&#x88C1;&#x526A;&#x7684;&#x533A;&#x57DF;">background-clip&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5411;&#x5916;&#x88C1;&#x526A;&#x7684;&#x533A;&#x57DF;</h3>
<ul>
<li>padding-box&#xFF1A;&#x4ECE;padding&#x533A;&#x57DF;&#xFF08;&#x4E0D;&#x542B;padding&#xFF09;&#x5F00;&#x59CB;&#x5411;&#x5916;&#x88C1;&#x526A;&#x80CC;&#x666F;&#x3002;</li>
<li>border-box&#xFF1A;&#x4ECE;border&#x533A;&#x57DF;&#xFF08;&#x4E0D;&#x542B;border&#xFF09;&#x5F00;&#x59CB;&#x5411;&#x5916;&#x88C1;&#x526A;&#x80CC;&#x666F;&#x3002;</li>
<li>content-box&#xFF1A;&#x4ECE;content&#x533A;&#x57DF;&#x5F00;&#x59CB;&#x5411;&#x5916;&#x88C1;&#x526A;&#x80CC;&#x666F;&#x3002;</li>
<li>text&#xFF1A;&#x4ECE;&#x524D;&#x666F;&#x5185;&#x5BB9;&#x7684;&#x5F62;&#x72B6;&#xFF08;&#x6BD4;&#x5982;&#x6587;&#x5B57;&#xFF09;&#x4F5C;&#x4E3A;&#x88C1;&#x526A;&#x533A;&#x57DF;&#x5411;&#x5916;&#x88C1;&#x526A;&#xFF0C;&#x5982;&#x6B64;&#x5373;&#x53EF;&#x5B9E;&#x73B0;&#x4F7F;&#x7528;&#x80CC;&#x666F;&#x4F5C;&#x4E3A;&#x586B;&#x5145;&#x8272;&#x4E4B;&#x7C7B;&#x7684;&#x906E;&#x7F69;&#x6548;&#x679C;<br>&#x906E;&#x7F69;&#x6587;&#x5B57;<pre><code class="lang-css"><span class="hljs-class">.a</span><span class="hljs-rules">{
              <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">300px</span></span></span>;
              <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">300px</span></span></span>;
              <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value"> <span class="hljs-number">1px</span> solid saddlebrown</span></span>;
              <span class="hljs-rule"><span class="hljs-attribute">background-image</span>:<span class="hljs-value"> <span class="hljs-function">url</span>(img/zhao.jpg)</span></span>;
              <span class="hljs-rule"><span class="hljs-attribute">background-repeat</span>:<span class="hljs-value"> no-repeat</span></span>;
              <span class="hljs-rule"><span class="hljs-attribute">background-origin</span>:<span class="hljs-value"> content-box</span></span>;
              <span class="hljs-rule"><span class="hljs-attribute">-webkit-background-clip</span>:<span class="hljs-value"> text</span></span>;<span class="hljs-comment">/*&#x4EE5;&#x6587;&#x5B57;&#x5185;&#x5BB9;&#x6765;&#x5207;&#x5272;*/</span>
              <span class="hljs-rule"><span class="hljs-attribute">-webkit-text-fill-color</span>:<span class="hljs-value"> transparent</span></span>;<span class="hljs-comment">/*&#x5B57;&#x4F53;&#x900F;&#x660E;&#x80FD;&#x770B;&#x51FA;&#x6548;&#x679C;*/</span>
              <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">30px</span></span></span>;
}</span>
</code></pre>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;a&quot;</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>&#x53D8;&#x53D8;&#x53D8;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
</code></pre>
<h3 id="backgroundcolor&#x80CC;&#x666F;&#x989C;&#x8272;">background-color&#x80CC;&#x666F;&#x989C;&#x8272;</h3>
<blockquote>
<p>&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x8986;&#x76D6;&#x5728;&#x80CC;&#x666F;&#x989C;&#x8272;&#x4E4B;&#x4E0A;</p>
</blockquote>
</li>
</ul>
<h3 id="backgroundsize&#x80CC;&#x666F;&#x5927;&#x5C0F;">background-size&#x80CC;&#x666F;&#x5927;&#x5C0F;</h3>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../note/css/border.html" class="navigation navigation-prev " aria-label="Previous page: 边框"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../note/css/hezi.html" class="navigation navigation-next " aria-label="Next page: 盒子模型"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"anchor-navigation-ex":{"isRewritePageTitle":true,"isShowTocTitleIcon":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
